*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
*:focus {
  outline: none;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 手机或平板设备上使用的文本溢出算法 */
  text-size-adjust: none;
  /* 设置点击链接的时候出现的高亮颜色 */
  -webkit-tap-highlight-color: transparent;
  /* 字体渲染时的平滑效果 */
  -webkit-font-smoothing: antialiased;
  /* ios滚动平滑 */
  -webkit-overflow-scrolling: touch;
  /* eslint-disable-next-line */
  word-break: break-all;
  /* IE 不兼容 */
  word-break: break-word;
}

details,
main {
  display: block;
}

/**
 * 清除样式
 */

ul,
ol,
li,
dl,
dt,
dd,
p {
  border: 0;
}

ul,
ol {
  list-style: none;
}

ol,
ul,
dl {
  margin-bottom: 0;
}

/**
 * 清除 a 标签样式
 */

a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
  &:hover {
    color: inherit;
    text-decoration: none;
    outline-width: 0;
  }
}

/**
 * 设置足够的 line-height 防止中文字体被削掉
 */

button,
input,
optgroup,
select,
textarea {
  border-radius: 0;
  font: inherit;
  line-height: 1.4; /* 1 */
  outline: 0;
}

/**
 * 清除 button 样式
 */

button {
  border: 0;
  background-color: transparent;
  color: inherit;
}

/**
 * 清除 textarea 样式
 */

textarea {
  resize: none;
  overflow: auto;
  -webkit-appearance: none;
  &:focus {
    outline: 0;
    resize: none;
  }
}

/**
 * 清除 input 样式
 */

input {
  -webkit-appearance: none;
  word-break: normal;
  box-shadow: none;

  &::-webkit-input-placeholder,
  &::-moz-placeholder,
  &::-ms-input-placeholder {
    opacity: 1;
  }

  &::-webkit-search-cancel-button {
    display: none;
  }

  &::-webkit-outer-spin-button,
  &::-webkit-inner-spin-button {
    -webkit-appearance: none;
  }

  &[type='number'] {
    -moz-appearance: textfield;
  }
}

b,
strong {
  font-weight: bolder;
}

/**
 * 滚动条样式
*/
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: #e5e7ec;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.rc-virtual-list-scrollbar {
  width: 6px !important;
}

.rc-virtual-list-scrollbar-thumb {
  background: #e5e7ec !important;
}
